package net.hanjava.roas;

import java.util.Arrays;
import java.util.logging.Logger;

class SheetUtil {
    private static Logger logger = Logger.getLogger(SheetUtil.class.toString());

    private SheetUtil() {
    }

    public static String[] getLocales(ResourceSheet sheet) {
        int headerRow = 0;
        int fromCol = 1;
        int toCol = sheet.getColumnCount();
        int count = toCol - fromCol;
        String[] result = new String[count];
        for(int i = 0; i < count; i++) {
            result[i] = sheet.get(headerRow, fromCol + i);
        }
        SheetUtil.logger.info(Arrays.deepToString(result));
        return result;
    }
}